import {
	Tools
} from 'weaver-mobile';

//【忘记密码】表单
export const getForgotPasswordForm = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/getForgotPasswordForm',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});

//校验【忘记密码】表单的提示信息 CheckMsg -> id ->  ToNext
export const forgotPasswordCheckMsg = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/forgotPasswordCheckMsg',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});

//校验【忘记密码】表单
export const forgotPasswordToNext = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/forgotPasswordToNext',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});



//【密保问题】表单
export const passwordQuestionForm = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/passwordQuestionForm',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});


//确认手机号的表单
export const confirmPhoneCodeForm = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/confirmPhoneCodeForm',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});


//确认【邮箱验证码】的表单
export const confirmEmailCodeForm = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/confirmEmailCodeForm',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});



//校验密保问题
export const passwordQuestionToNext = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/passwordQuestionToNext',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});

//校验手机验证码
export const confirmPhoneCodeToNext = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/confirmPhoneCodeToNext',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});

//校验邮箱验证码
export const confirmEmailCodeToNext = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/confirmEmailCodeToNext',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});



//设置新密码的表单
export const resetPasswordForm = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/resetPasswordForm',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});

//保存新密码
export const saveResetPassword = (params = {}) => Tools.callApi({
	url: '/api/hrm/forgotPassword/saveResetPassword',
	method: 'POST',
	params: {
		...params,
		ismobile: 1
	}
});
